package com.columboid.protocol.syncml.tests.resources;

public class SyncMLString {

	
	public static String getMetaObject()
	{
		String xml ;
		
		//xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>";
		xml = "<MetInf xmlns=\"http://protocol.columboid.com/syncml/metainfo\">";
		xml += "<Format>b64</Format>";
		xml += "<Type>syncml:auth-md5</Type>";
		xml += "<NextNonce>";
		xml += "12345";
		xml += "</NextNonce>";
		xml += "</MetInf>";
		return xml;
	}
	
	
	public static String getSyncMLSingleObject() {
		String xml;

		xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>";
		xml += "<SyncML xmlns=\"http://protocol.columboid.com/syncml/representation\"/>";

		return xml;
	}

	public static String getSyncMLOnlyHeader() {
		String xml;

		xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>";
		xml += "<SyncML xmlns=\"http://protocol.columboid.com/syncml/representation\">";
		xml += "<SyncHdr/>";
		xml += "</SyncML>";
		return xml;
	}

	public static String getSyncMLHeaderAndBody() {
		String xml;

		xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>";
		xml += "<SyncML xmlns=\"http://protocol.columboid.com/syncml/representation\">";
		xml += "<SyncHdr/>";
		xml += "<SyncBody/>";
		xml += "</SyncML>";
		return xml;
	}
	
	public static String getFinalSyncMLHeaderAndBody() {
		String xml;

		xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>";
		xml += "<SyncML xmlns=\"http://protocol.columboid.com/syncml/representation\">";
		xml += "<SyncHdr/>";
		xml += "<SyncBody>";
		xml += "<Final/>";
		xml += "</SyncBody>";
		xml += "</SyncML>";
		return xml;
	}

	public static String getSyncMLBody() {
		String xml;

		xml = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>";
		xml += "<SyncML xmlns='http://protocol.columboid.com/syncml/representation'>";
		xml += "<SyncHdr>";
		xml += "<VerDTD>1.1</VerDTD>";
		xml += "<VerProto>SyncML/1.1</VerProto>";
		xml += "<SessionID>1</SessionID>";
		xml += "<MsgID>1</MsgID>";
		xml += "<Target>";
		xml += "<LocURI>/</LocURI>";
		xml += "</Target>";
		xml += "<Source>";
		xml += "<LocURI>GSM Remote ML</LocURI>";
		xml += "</Source>";
		xml += "</SyncHdr>";
		xml += "<SyncBody>";
		xml += "<Alert>";
		xml += "<CmdID>1</CmdID>";
		xml += "<Data>206</Data>";
		xml += "<Item>";
		xml += "<Source>";
		xml += "<LocURI>Contacts</LocURI>";
		xml += "</Source>";
		xml += "<Meta>";
		xml += "whatever";
		xml += "</Meta>";
		xml += "</Item>";
		xml += "</Alert>";
		xml += "<Alert>";
		xml += "<CmdID>2</CmdID>";
		xml += "<Data>206</Data>";
		xml += "<Item>";
		xml += "<Source>";
		xml += "<LocURI>Events</LocURI>";
		xml += "</Source>";
		xml += "<Meta>";
		xml += "whatever";
		// xml += "<Type xmlns='syncml:metinf'>text/x-vcalendar</Type>";
		xml += "</Meta>";
		xml += "</Item>";
		xml += "</Alert>";
		xml += "<Alert>";
		xml += "<CmdID>3</CmdID>";
		xml += "<Data>206</Data>";
		xml += "<Item>";
		xml += "<Source>";
		xml += "<LocURI>Notes</LocURI>";
		xml += "</Source>";
		xml += "<Meta>";
		xml += "whatever";
		// xml += "<Type xmlns='syncml:metinf'>text/plain</Type>";
		xml += "</Meta>";
		xml += "</Item>";
		xml += "</Alert>";
		xml += "<Final/>";
		xml += "</SyncBody>";
		xml += "</SyncML>";
		return xml;
	}
}
